<!DOCTYPE html>
<html lang="en">
<head>
<base href="${basePath}">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta charset="utf-8">
<title>资料修改 - 会员 - 云支付|云收款</title>
<#include "/views/ftl/base/shop_manage_header.ftl">
</head>
<body class="no-skin">
<#include "/views/ftl/base/shop_manage_top.ftl">  
<div class="main-container" id="main-container">
<#import "/views/ftl/base/shop_manage_left.ftl" as r>
<@r.thebean urlname="user_info"/>

			<!-- /section:basics/sidebar -->
			<div class="main-content">
				<!-- #section:basics/content.breadcrumbs -->
				<div class="breadcrumbs" id="breadcrumbs">
					<script type="text/javascript">
						try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
					</script>

					<ul class="breadcrumb">
						<li>
							<i class="ace-icon fa fa-home home-icon"></i>
							<a href="shopmanage/Index_index">首页</a>
						</li>

						<li class="active">
							会员资料修改
						</li>
						<!--<li class="active">Form Elements</li>-->
					</ul><!-- /.breadcrumb -->

					
					<!-- /section:basics/content.searchbox -->
				</div>

				<!-- /section:basics/content.breadcrumbs -->
				<div class="page-content">
					<!-- #section:settings.box -->
					 <#include "/views/ftl/base/shop_manage_right_float.ftl">

					<!-- /section:settings.box -->					<div class="page-content-area">
						<div class="page-header">
							<h1>
								编辑
								
							</h1>
						</div><!-- /.page-header -->

						<div class="row">
							<div class="col-xs-12">
								<!-- PAGE CONTENT BEGINS -->
								<div class="form-horizontal" role="form"  >
									<!-- #section:elements.form -->
									
									
									
									<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 会员账号 </label>

										<div class="col-sm-9">
											<input type="text" name="u_name" disabled="disabled" value="${(user.userName)!''}" class="form-control">
											<span class="help-block">不可修改。</span>
										</div>
									</div>
									<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 会员邮箱 </label>

										<div class="col-sm-9">
											<input id="i_email" type="text" name="u_email" value="${(user.email)!''}" class="form-control">
											<span class="help-block">客户下单付款后系统将向此邮箱发送一封邮件。（若需短信提醒请使用手机邮箱）</span>
										</div>
									</div>
									
									<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 联系QQ </label>

										<div class="col-sm-9">
											<input id="i_qqNum" type="text" name="u_qq" value="${(user.qqNum)!''}" class="form-control">
											<span class="help-block"></span>
										</div>
									</div>
									<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 联系电话 </label>

										<div class="col-sm-9">
											<input id="i_phoneNum" type="text" name="u_tel" disabled="disabled" value="${(user.phoneNum)!''}" class="form-control">
											<span class="help-block"></span>
										</div>
									</div>
									
									<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 联系地址 </label>

										<div class="col-sm-9">
											<input id="i_address" type="text" name="u_address" value="${(user.address)!''}" class="form-control">
											<span class="help-block"></span>
										</div>
									</div>
									

									
									<div class="clearfix form-actions">
										<div class="col-md-offset-3 col-md-9">
											<button id="modify_info_btn" class="btn btn-info" type="submit">
												<i class="ace-icon fa fa-check bigger-110"></i>
												提交
											</button>

											
										</div>
									</div>
									
								</div><!-- PAGE CONTENT ENDS -->
							</div><!-- /.col -->
						</div><!-- /.row -->
					</div><!-- /.page-content-area -->
				</div><!-- /.page-content -->
			</div><!-- /.main-content -->

<#include "/views/ftl/base/shop_manage_footer.ftl">

<div id="limiterBox" class="limiterBox" style="position: absolute; display: none;"></div>
<script type="text/javascript">
$(function(){
	
	$('#modify_info_btn').click(function(){
	   		 var email= $('#i_email').val();
    		var qqNum= $('#i_qqNum').val(); 
    		var address= $('#i_address').val();
    	
			$.ajax({ 
				url : "shopmanage/Member_modifyUserInfo",
				data : {
					 email:email,
					 qqNum:qqNum, 
					 address:address
				}, 
				dataType :"JSON",
				cache : false, 
				type : "POST",
				success : function(dat){
					alert(dat.msg);
					window.location.reload();
				}
			});
			
			 $('#old_pass_word_input').val("");
			 $('#pass_word_input').val("");
			 $('#re_pass_word_input').val("");
	});
	
});
</script>
</body>
</html>